// 底部版权组件
<template>
  <!-- <div id="footer">
    <div>
      <span>北京市勘察设计研究院有限公司</span>
      <span style="margin-left:40px;">版权所有© 2018 ALL Rights Reserved.</span>
      <span style="margin-left:40px;">京ICP备16056891号-1</span>
    </div>
    <div>
      <span>地址：北京市海淀区羊坊店路15号</span>
      <span style="margin-left:40px;">邮编：100038</span>
      <span style="margin-left:40px;">电话：010-63987285</span>
      <span style="margin-left:40px;">传真：010-63982273</span>
      <span style="margin-left:40px;">京公网安备：11010899141</span>
    </div>
  </div>
</template>

<script>

export default {
  name: 'footer'
}
</script>

<style>
#footer {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #006eab;
  color: #d2d2d2;
  text-align: center;
  line-height:250%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
</style> -->
  <el-container>
    <div>Copyright © {{copyright_year}}. V{{copyright.version}}&nbsp;&nbsp;北京市勘察设计研究院有限公司 版权所有</div>
  </el-container>
</template>

<script>
export default {
  name: "myFooter",
  data() {
    return {
        copyright:{
            year:'2020',
            version:'1.0.0'
        }

    };
  },
  computed: {
      copyright_year:function(){
          var curryear = new Date().getFullYear.toString();
          if(curryear = this.copyright.year) return curryear;
          return this.copyright.year+'-'+curryear;
      }
  },
};
</script>

<style lang="less" scoped>
.el-container {
  background-color: #1296db;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Microsoft YaHei;
  color: white;
}
</style>
